import request from '@/utils/requestH2'

/* 数据报表页面 */

// 客户类型对应合同金额列表查询
export function selCustomerTypeMoneyListApi(params) {
  return request({
    url: '/dataShow/customerType/selCustomerTypeMoneyList',
    method: 'GET',
    params
  })
}

// 执行部门对应合同金额列表查询
export function selDepartmentMoneyListApi(params) {
  return request({
    url: '/dataShow/department/selDepartmentMoneyList',
    method: 'GET',
    params
  })
}

// 平台产品ip对应合同金额列表查询
export function selPlatformMoneyListApi(params) {
  return request({
    url: '/dataShow/platform/selPlatformMoneyList',
    method: 'GET',
    params
  })
}

// 项目领域对应合同金额列表查询
export function selProjectAreaMoneyListApi(params) {
  return request({
    url: '/dataShow/projectArea/selProjectAreaMoneyList',
    method: 'GET',
    params
  })
}

// 项目属性对应合同金额列表查询
export function selProjectAttributeMoneyListApi(params) {
  return request({
    url: '/dataShow/projectAttribute/selProjectAttributeMoneyList',
    method: 'GET',
    params
  })
}

// 项目类型对应合同金额列表查询
export function selProjectFromAllMoneyListApi(params) {
  return request({
    url: '/dataShow/projectFrom/selProjectFromAllMoneyList',
    method: 'GET',
    params
  })
}

// 存量类型对应合同金额列表查询
export function selStockTypeMoneyListApi(params) {
  return request({
    url: '/dataShow/stockType/selStockTypeMoneyList',
    method: 'GET',
    params
  })
}

// 数据看板文件导出
export function dataExcelApi(params) {
  return request({
    url: '/filePreview/dataExcel',
    method: 'GET',
    params
  })
}

// 数据看板根据名字查询合同文件导出
export function projectDataApi(params) {
  return request({
    url: '/filePreview/projectData/excel',
    method: 'GET',
    params
  })
}

// 项目类型对应合同总额列表查询
export function selProjectTypeAllMoneyListApi(params) {
  return request({
    url: '/dataShow/projectType/selProjectTypeAllMoneyList',
    method: 'GET',
    params
  })
}

// 项目类型对应合同成本列表查询
export function selProjectTypeCostMoneyListApi(params) {
  return request({
    url: '/dataShow/projectType/selProjectTypeCostMoneyList',
    method: 'GET',
    params
  })
}

// 划转对象对应划转金额列表查询
export function selTransferMoneyListApi(params) {
  return request({
    url: '/dataShow/transferObject/selTransferMoneyList',
    method: 'GET',
    params
  })
}

// 累计合同金额
export function selMoneyAndCountApi(params) {
  return request({
    url: '/dataShow/sum/selMoneyAndCount',
    method: 'GET',
    params
  })
}
